/**
 * Dans.com Inc. Copyright (c) 2011-2020 All Rights Reserved
 */
package event;


import enums.EventTypeEnum;
import enums.OperateTypeEnum;

/**
 * @author ke
 * Created by on  2021-05-27 10:02
 */
public abstract class AbstractBusinessEvent implements BusinessEvent {

    private static final long serialVersionUID = 7928189718076082140L;

    /**
     * 系统编码
     */
    private String businessId;

    /**
     * 数据
     */
    private String data;
    /**
     * 唯一标识
     */
    private String eventIdentifier;

    /**
     * 增删改
     */
    private OperateTypeEnum operateType;

    /**
     * 区分业务类型
     */
    private EventTypeEnum eventType;
    @Override
    public EventTypeEnum getEventType() {
        return eventType;
    }

    @Override
    public void setEventType(EventTypeEnum eventType) {
        this.eventType = eventType;
    }


    @Override
    public String getBusinessId() {
        return businessId;
    }

    @Override
    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    @Override
    public String getData() {
        return data;
    }

    @Override
    public void setData(String data) {
        this.data = data;
    }

    @Override
    public OperateTypeEnum getOperateType() {
        return operateType;
    }

    @Override
    public void setOperateType(OperateTypeEnum operateType) {
        this.operateType = operateType;
    }

    @Override
    public String getEventIdentifier() {
        return eventIdentifier;
    }

    public void setEventIdentifier(String eventIdentifier) {
        this.eventIdentifier = eventIdentifier;
    }
}
